package com.xidian.zhiancloud.scheduleTask;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author: Summerless
 * @Date: 2021/3/22 12:26
 */
@Component
public class TestSchedule {
    /**
     * 定时任务一 每天零点触发
     */
    @Scheduled(cron="0 0 0 * * ?")
    public void execute(){
        System.out.println("-----");
    }
}
